package net.ericaro.neojavagen.expressions;

/**
 * <b>PrimaryAccess</b> ::= <{@link net .ericaro .neojavagen .expressions .Primary Primary}> "." <{@link net .ericaro .neojavagen .types .Identifier Identifier}
 * >
 * 
 * @author eric@ericaro.net
 */
public class PrimaryAccess extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.FieldAccess {
	private net.ericaro.neojavagen.types.Identifier identifier;

	private net.ericaro.neojavagen.expressions.Primary primary;

	public PrimaryAccess(net.ericaro.neojavagen.expressions.Primary primary, net.ericaro.neojavagen.types.Identifier identifier) {
		super();
		this.primary = primary;
		this.identifier = identifier;
	}

	public net.ericaro.neojavagen.types.Identifier getIdentifier() {
		return identifier;
	}

	public net.ericaro.neojavagen.expressions.Primary getPrimary() {
		return primary;
	}

	public void setIdentifier(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
	}

	public void setPrimary(net.ericaro.neojavagen.expressions.Primary primary) {
		this.primary = primary;
	}

	@Override
	public java.lang.String toString() {
		return print(primary, ".", identifier);
	}
}
